package com.inool.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inool.model.Course;

import java.util.List;

public interface CourseService extends IService<Course> {

    Course addCourse(Course course);

    Course updateCourse(String id, Course course);

    void deleteCourse(String id);

    Course getCourseById(String id);

    List<Course> getAllCourses();

    Page<Course> pageCourses(long current, long size, String courseName, Integer credits);



}    